-module(list, [List]).
-export([add/1, tolist/0]).

%% returns a new instance with X added to the list
add(X) ->
    io:format("THIS= ~p~n", [THIS]),
    X = THIS:instance([X|List]),
    io:format("X= ~p~n", [X]),
    X.

%% returns the Erlang representation of the list
tolist() ->
    List.
